{% comment %} 部分模板：资产维修表单（用于 AJAX 模态）{% endcomment %}
<div>
  {% if error %}
    <div class="alert alert-warning small">{{ error }}</div>
  {% endif %}
  <div class="mb-2 small text-muted">
    <strong>{{ asset.name }}</strong>
    {% if asset.asset_number %}<span class="ms-2">编号：{{ asset.asset_number }}</span>{% endif %}
  </div>
  <form method="post">
    {% csrf_token %}
    <div class="mb-3">
      <label for="ajax-maintenance-description" class="form-label">维护说明</label>
      <textarea class="form-control" id="ajax-maintenance-description" name="description" rows="4" placeholder="请填写维护/维修说明"></textarea>
    </div>
  </form>
</div>
